package com.wiringweb.parameterprocessor;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Dmitry
 */
public class ParameterProcessorSettings {
    private Map<Class, ParameterProcessorInterface> annotationToParameterProcessor = new HashMap<Class, ParameterProcessorInterface>();

    public void addAnnotation(Class annotation, ParameterProcessorInterface processor) {
        annotationToParameterProcessor.put(annotation, processor);
    }

    public ParameterProcessorInterface getParameterProcessor(Class annotation) {
        return annotationToParameterProcessor.get(annotation);
    }
}
